package mspbots.xero.common;

import org.springframework.util.LinkedMultiValueMap;

import java.util.LinkedHashMap;

/**
 * mspbots.data.cw.Page
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/8/19
 */
public class QueryParams extends LinkedMultiValueMap<String, String> {

    /**
     * Create a new LinkedMultiValueMap that wraps a {@link LinkedHashMap}.
     */
    public QueryParams() {
        super(new LinkedHashMap<>());
    }

    /**
     * Create a new LinkedMultiValueMap that wraps a {@link LinkedHashMap}
     * with the given initial capacity.
     *
     * @param initialCapacity the initial capacity
     */
    public QueryParams(int initialCapacity) {
        super(new LinkedHashMap<>(initialCapacity));
    }


    /**
     * default query params
     * max records 500
     * page 0
     *
     * @return default query body
     */
    public static QueryParams withDefault() {
        return new QueryParams();
    }

}
